    <!DOCTYPE html>    
    <html>
    <head>
        <meta charset="utf-8">    
        <title>ForeHead</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0,user-scalable=no">    
        <script src="/Public/js/jquery.min.js"></script> 
        <script src="/Public/js/bootstrap.min.js"></script> 
        
        <link rel="stylesheet" type="text/css" href="/Public/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="/Public/css/base.css"> 
        <link rel="stylesheet" type="text/css" href="/Public/css/frozen.css">

        <style type="text/css">
            .content{
                 position: absolute;
                left: 0;
                right: 0;
                overflow-x:hidden;
                overflow-y:auto;
                padding-bottom: 49px !important;
            }
            .interview-content{
               width: 100%;
               margin-top: 2px;
               color: gray;
            }
            .interview{
                width: 90%;
                margin: 10px auto;
            }
            .interview-text{
                width: 100%;
                height: 50px;
                border-bottom: 1px solid gray;
            }
            .interview-title{
                padding-top: 10px;
            }
            .person .interview-text,.linkType .interview-text{
                height: 30px !important;
            }
            .linkType{
                padding-bottom: 30px !important;
            }
            .interview-send{
                text-align: center;
                width: 80%;
                height: 40px;
                margin: 0 auto;
                margin-top: 50px;
                background-color: rgb(81, 79, 79);
                color: white;
                line-height: 40px;
                border-radius: 5px;
            }
            .interview-tip{
                padding: 10px 10px;
                color:#626669;
                background-color: white;
                font-size: 12px;
            }
            .interview-tip div{
                color:#34d098;
            }
            .candidate{
                background-color: white;
                margin-top: 5px;
                padding: 20px 0;
                color:#34d098;
            }
            .candidate img{
                width: 13px;
                height: 16px;
                margin: 0 10px;
            }
            .candidate div{
                display: inline-block;
                margin-left: 10px;
                color:#626669;
            }
             .usePeople-notpass{
                width: 120px;
                height: 40px;
                float: left;
                margin: 50px 0 80px 20px;
                border-radius: 2px;
                background-color: #74E2BB;
                border-color: #74E2BB;
                color: white;
            }
            .usePeople-pass{
                width: 120px;
                height: 40px;
                float: right;
                margin: 50px 20px 80px 0;
                border-radius: 2px;
                background-color: #34D098;
                border-color: #34D098;
                color: white;

            }
            .ui-dialog-cnt{
                width: 100%;
                margin: 50% auto;
            }
            .ui-dialog-text{
                width: 90%;
                margin: 0 auto;
                font-size: 10px;
                color: gray;
            }
            #notpass-result .ui-dialog-bd{
                padding-bottom: 0px;
            }
            .ui-dialog-result{
                display: block;
                width: 90%;
                min-height: 80px;
                margin: 10px auto;
                border: 1px solid gray;
            }
            .recommend-list-content{
                margin: 5px 16px;
            }
            .recommend-list-content div{
                display: inline-block;
            }
            .resume-title{
                font-size: 12px;
                text-align: left;
                margin: 2px 0 2px 16px;
            }
            .resume-text{
                width: 86%;
                text-align: left;
                margin: 5px auto;
                font-size: 13px;
            }
            .resume-text-job{
                color: #A9AEB2;
            }
            .resume-text-job div{
                
                display: inline-block;
            }
            .resume-text-content{
                width: 100%;
                background-color: white;
                padding: 10px 0;
                height: 80px;
            }
            .userName{
                position: absolute;
                margin: 35px 70px;
                color: #505960;
                font-size: 13px;
            }
            .userName span{
                color:#34d098;
            }

            .star{
                float: left;
                margin-left: 13px;
                color: #505960;
            }
            .star div{
                float: right;
                margin: 2px 0 0 3px;
                font-size: 16px;
            }
            .star img{
                width: 16px;
                height: 15px;
            }
            .userPic{
                width: 50px;
                height: 50px;
                border-radius: 50%;
                border: 1px solid gray;
                background-image:url(img/raodaqi.jpg);
                background-size: 100% 100%;
                margin: 10px 0 0 10px;
                font-weight: bolder;
                float: left;
            }
            .ui-dialog-cnt {
                width: 100%;
                margin: 40% auto;
            }
            .hidden-btn{
                background: #A4A6A8 !important;
                border-color:#A4A6A8 !important;
            }
        </style>
    </head>
    <body>
    <form action="#" method="post">
        <div class="content">
            <div class="interview-tip">
                <div>{$resume['candidate']}在{$job['jobName']}的试用期即将结束</div>
                他的表现是否适合贵方的要求呢？    
                <br/>    
                如果合适，你可以点击正式录用，结束试用期并且向推荐人打款。
            </div>
            <div class="candidate">
                <img src="/Public/img/候选人.svg">
                候选人:<div>{$resume['candidate']}</div>
            </div>
            <div class="interview-content">

                <div class="recommend">
                    <div class="recommend-title">试用信息</div>

                    <div class="recommend-content baseInfo">
                        <div class="recommend-name">试用职位</div>
                        <div class="recommend-list-content">{$job['jobName']}</div>

                        <div class="recommend-name">试用公司</div>
                        <div class="recommend-list-content">{$job['company']}</div>

                        <div class="recommend-name">试用时间</div>
                        <div class="time recommend-list-content">
                            <div class="time-star">{$resume['tryStart']}</div>
                            ——
                            <div class="time-up">{$resume['tryEnd']}</div>
                        </div>
                    </div>
                </div>
                <div class="resume">
                    <div class="resume-title">推荐人信息</div>
                        <div class="resume-text-content">
                            <a href="http://w2.9026.com/addon/JianCai/JianCai/userMessage/uid/{$user[id]}">
                                <img class="userPic" src="{$user['headimgurl']}"/>
                            </a>
                        <div >
                            <div class="star">
                                <img src="/Public/img/评价页面的评分（填满）.svg">                
                                <img src="/Public/img/评价页面的评分（填满）.svg">                
                                <img src="/Public/img/评价页面的评分（填满）.svg">                
                                <img src="/Public/img/评价页面的评分（填满）.svg">                
                                <img src="/Public/img/评价页面的评分.svg">                
                                <div>4.8</div>
                            </div>
                            <div class="userName" name="referrer">
                                推荐人:&nbsp;
                                <span>{$user['name']}</span>
                            </div>
                        </div>
                        
                    </div>
                </div>
                <!-- <div class="interview time-star">
                    <div class="interview-title">试用期开始时间</div>
                    <input type="text" class="interview-text" name="interviewTimeStar"></div>
                <div class="interview time-stop">
                    <div class="interview-title">试用期结束时间</div>
                    <input type="text" class="interview-text" name="interviewTimeEnd"></div>
                <div class="interview place">
                    <div class="interview-title">工作地点</div>
                    <input type="text" class="interview-text" name="interviewPlace"></div>
                <div class="interview person">
                    <div class="interview-title">联系人</div>
                    <input type="text" class="interview-text" name="interviewPerson"></div>
                <div class="interview linkType">
                    <div class="interview-title">联系方式</div>
                    <input type="text" class="interview-text" name="interviewPhone"></div> -->
            </div>

<if condition="$resume['pass'] eq 6">
<button type="button" id="usePeople-notpass" data-complete-text="取消成功!" class=" usePeople-notpass" autocomplete="off">不通过</button>
<button type="button" id="usePeople-pass" data-complete-text="保存成功!" class=" usePeople-pass" autocomplete="off">正式录用</button>
</if>
<if condition="$resume['pass'] egt 7">
<button type="button" class=" hidden-btn usePeople-pass">已经录用</button>
</if>
<if condition="$resume['pass'] eq -7">
<button type="button" class=" hidden-btn usePeople-pass">已拒绝录用</button>
</if>


   </form>
    <nav class="navbar navbar-default navbar-fixed-bottom">
        <div class="container">
            <div class="container-btn" data-navbar = "index">
                <img src="/Public/img/我要推荐.svg">    
                <div>我要推荐</div>
            </div>
            <div class="container-btn" data-navbar = "usePeople">
                <img src="/Public/img/我要用人.svg">    
                <div>我要用人</div>
            </div>
            <div class="container-btn" data-navbar = "user">
                <img src="/Public/img/个人中心.svg">    
                <div>个人中心</div>
            </div>
        </div>
    </nav>

    <div class="ui-dialog" id="notpass-dialog">
        <div class="ui-dialog-cnt">
            <div class="ui-dialog-bd">
                <h4>提示</h4>
                <!-- <img src="/Public/img/已退回.svg"> -->
                <div>你确定不通过{$resume['candidate']}的试用期吗？</div>
            </div>
            <div class="ui-dialog-ft ui-btn-group">
                <button type="button" class="notpass-cacel">取消</button>
                <button type="button" class="notpass-sure">确定</button>
            </div>
        </div>
    </div>
    <div class="ui-dialog" id="notpass-result">
        <div class="ui-dialog-cnt">
            <div class="ui-dialog-bd">
                <h4>请输入不通过的原因</h4>
        </div>
        <div class="ui-dialog-text">我们发现，当你输入了原因后，推荐人后续推荐的候选人的时候会更加符合你的要求。</div>

        <form action="/addon/JianCai/JianCai/employeeRefuse" method="post" class="resultForm">
             <input type="hidden" value="{$resume['id']}" name="resumeId">    
           
            <textarea class="ui-dialog-result" name="employeeRefuseMsg"></textarea>
        </form>

        <div class="ui-dialog-ft ui-btn-group">
            <button type="button" class="notpass-cacel">取消</button>
            <button type="button" class="notpass-send">发送</button>
        </div>
    </div>
    </div>
    <div class="ui-poptips ui-poptips-success" style="display:none">
        <div class="ui-poptips-cnt"> <i></i>
            发送成功
        </div>
    </div>
    </div>

      <div class="ui-dialog" id="test-dialog">
        <div class="ui-dialog-cnt">
            <div class="ui-dialog-bd">
                <div>支付</div>
            </div>
            <div class="ui-dialog-ft ui-btn-group">
                <button type="button" class="test-cacel">取消</button>
                <button type="button" class="test-sure">确定</button>
            </div>
        </div>
    </div>

    <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="complete-userInfo">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="dialog-title">请先完善你的个人资料</div>
                    <div class="dialog-content">
                        只有先完善自己的个人资料才能查看对方的信息
                        <a href="/addon/JianCai/JianCai/userInfo.html">
                            <div class="dialog-btn">去完善＝＝》</div>
                        </a>
                    </div>
                </div>
                <div class="set-close">
                    <img src="/Public/img/弹出框的关闭.svg"></div>
            </div>

        </div>

    </body>
    <script type="text/javascript" src="/Public/js/zepto.min.js"></script>
    <script type="text/javascript" src="/Public/js/frozen.js"></script>
    <script type="text/javascript">
    
        var cacelbtnDown = false;
        var passbtnDown = false;

       $("#usePeople-notpass").on("click",function(){
            
            if(!cacelbtnDown)
            {
                $("#notpass-dialog").show();
            }
       });

        $("#usePeople-pass").on("click",function(){ 
            if(!passbtnDown)
            {
                //支付
                window.location.href = "/addon/JianCai/JianCai/WeixinPay"
                //$("#test-dialog").show();
                //  console.log("已拒绝");
                // $("#usePeople-notpass").addClass("hidden-btn");
                // cacelbtnDown = true;

                // $("#usePeople-pass").addClass("hidden-btn");
                // passbtnDown = true;

               //$.get("/addon/JianCai/JianCai/employeeAccept/resumeId/{$resume['id']}", function(result){ }); 
                  
            }
       });

       $(".ui-btn-group button").on("click",function(){
           $(".ui-dialog").hide();
       });
       $(".notpass-sure").on("click",function(){
            if(!cacelbtnDown)
            {
                $("#notpass-result").show();
            }
       })
       $(".notpass-send").on("click",function(){

            $(".resultForm").submit();

            $(".ui-dialog").hide();
            $(".ui-poptips").show();
            setTimeout(function(){
                $(".ui-poptips").hide();
            }, 1000);
            setTimeout(function(){
                window.location.href = "/addon/JianCai/JianCai/recommendDetail/jobId/{$job['id']}"
            }, 2000);
       })
        $(".container-btn").on("click",function(){
            window.location.href = "/addon/JianCai/JianCai/"+$(this).data('navbar')+".html";
        })
        $(".test-sure").on("click",function(){
            window.location.href = "/addon/JianCai/JianCai/evaluate/resumeId/{$resume['id']}";
        })

        $(".notpass-sure").on("click",function(){

            // if(!cacelbtnDown)
            // {
            //      console.log("已拒绝");
            //     $("#cacel").addClass("hidden-btn");
            //     cacelbtnDown = true;

            //     $("#pass").addClass("hidden-btn");
            //     passbtnDown = true;
            //        $.ajax({
            //           type: 'GET',
            //           url: "http://w2.9026.com/addon/JianCai/JianCai/resumeNopass/resumeId/{$job['id']}",
            //           data: data,
            //           dataType: 'json',
            //           success: function(result) {
                            
            //           },
            //           error: function() {
                       
            //           }  
            //     })
            // }
       })
        // $(".userPic").on("click",function(){

        //     var phoneNum = "{$user['phoneNum']}";
        //     var phoneNum = "";
        //     if(phoneNum=='')
        //     {
        //        $("#complete-userInfo").modal('show'); 
        //     }else{
        //         window.location.href = "#";
        //     }
        // })
        $(".set-close").on("click",function(){
             $("#complete-userInfo").modal('hide');
        })
    </script>
    </html>
